package com.yj.timecapsule.mapper;

import com.yj.timecapsule.websocket.ai.entity.AiMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AiMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AiMessage record);

    int insertSelective(AiMessage record);

    AiMessage selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AiMessage record);

    int updateByPrimaryKeyWithBLOBs(AiMessage record);

    int updateByPrimaryKey(AiMessage record);

    void insertBatch(@Param("messageList") List<AiMessage> history);

}